package net.gazhi.delonix.grac.service;

import java.util.List;

import net.gazhi.delonix.core.service.AbstractEntityService;
import net.gazhi.delonix.core.service.SimpleTreeNodeService;
import net.gazhi.delonix.grac.entity.gru.UserDir;

import org.hibernate.criterion.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true)
public class UserDirService extends AbstractEntityService<UserDir> {
	
	@Autowired
	private SimpleTreeNodeService simpleTreeNodeService;
	
	@SuppressWarnings("unchecked")
	public List<UserDir> listAll(){
		return super.createCriteria().addOrder(Order.asc("fullOrder")).list();
	}

}
